Open a Module from the Baselie Set

Hi All,

I have a list of Baseline definitions for a project, Where I would like to access a module from the baseline set definition. But it always populates the recent version of the module not the old one which i am looking for.. Do we need to mention the version, Can't we access by using the description (or) BSD Name? Please help.

Here is the code....

void printBSDs()
{
BaselineSetDefinition bsd
BaselineSet bs
Baseline b

for bsd in current Folder do
{
print name(bsd) ": " description(bsd) "\n"

for bs in bsd do
{
if(description(bsd) == "ABC Config")
{
ModName_ mod
for mod in bsd do
{
Module PD = read("/Hybrid/Contract Documents/Description", false)
current = PD
for b in PD do
{
if (description(bsd) == "ABC Config")
{
Module PD = read("/Hybrid/Contract Documents/Description", true)
printModule PD
}
}
}
}
}
}
}
printBSDs
SystemAdmin - Sun Oct 18 08:31:50 EDT 2009

Re: Open a Module from the Baselie Set
ePiallat - Mon Oct 19 05:11:58 EDT 2009

Hi,

You loop through baseline sets of bsd, but never read any information from your "bs" iterator.

You should replace "ModName_ mod; for mod in bsd do ..." by a "ModuleVersion modver; for modver in bs do ..." loop.

And of course, adapt the rest (replace "read" by "load(modver)" and so on.)